local config = {}
function config.project()
	require("project_nvim").setup({
		patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json", "CMakeLists.txt" },
		-- your configuration comes here
		-- or leave it empty to use the default settings
		-- refer to the configuration section below
	})
	require("telescope").load_extension("projects")
end
--require("neogen").setup({
--	enabled = true,
--})
--require("nvim-surround").setup({
  -- Configuration here, or leave empty to use defaults
--})
-- require'qf_helper'.setup()

--[[require("sg").setup {]]
--[[}]]
if vim.g.use_gitsigns==1 then
	require("modules.dev.gitsigns")
end
if vim.g.use_vgit==1 then
  require("modules.dev.vgit")
end
function config.trouble()
	require("modules.dev.trouble")
end

if vim.g.use_treesitter==1 then
  require("modules.dev.treesitter")
end
require("modules.dev.indent-blankline")
require("modules.dev.refactor")
-- require("modules.dev.vgit")
require("modules.dev.nvim_context_vt")
local ok,nvimtest = pcall(require,'nvim-test')
if ok then
  nvimtest.setup()
end
--require("tmux").setup()
function config.comment()
  require('neogen').setup {}
  -- require('nvim_comment').setup({line_mapping = "<leader>cc", operator_mapping = "<leader>cm"})
  --require("modules.dev.Comment")
  -- require("modules.dev.nvim_comment")
end
function config.outline()
	require("modules.dev.symbols_outline")
	require("modules.dev.aerial")
end
function config.document()
	-- require("neogen").setup({})
	-- local opts = { noremap = true, silent = true }
	-- vim.api.nvim_set_keymap("n", "do", ":lua require('neogen').generate()<CR>", opts)
end
local ok,chatgpt=pcall(require,"chatgpt")
if ok  then

  chatgpt.setup({
  })
end
pcall(require,"codegpt")
if vim.g.use_dap==1 then
  require("modules.dev.dap")
end
local ok,glow = pcall(require,'glow')
if ok then
  glow.setup({
    width = 500,
    width_ratio = 0.9
  })
end
return config
